import { createRouter, createWebHashHistory } from 'vue-router'

import Programming_content from '@/views/Programming_content/Programming_content.vue'
import Other_content from '@/views/Other_content/Other_content.vue'
import Coreliteracy from '@/views/Coreliteracy/Coreliteracy.vue'
import Link from '@/views/Link/Link.vue'
import Mydynamic from '@/views/Mydynamic/Mydynamic.vue'
import Homepage from '@/views/Homepage/Homepage.vue'
import Login from '@/views/Login/Login.vue'
import Countdown from '@/views/Countdown/Countdown.vue'
const routes = [
  {
    path: '/',
    redirect: '/hp'
  },
  {
    path: '/pc',
    name: 'Programming_content',
    component: Programming_content,
    meta: { keepAlive: true }
  },
  {
    path: '/oc',
    name: 'Other_content',
    component: Other_content,
    meta: { keepAlive: true }
  },
  { path: '/lk', name: 'Link', component: Link, meta: { keepAlive: true } },
  {
    path: '/dm',
    name: 'Mydynamic',
    component: Mydynamic,
    meta: { keepAlive: true }
  },
  {
    path: '/cl',
    name: 'Coreliteracy',
    component: Coreliteracy,
    meta: { keepAlive: true }
  },
  {
    path: '/hp',
    name: 'Homepage',
    component: Homepage,
    meta: { keepAlive: true }
  },

  { path: '/lg', name: 'Login', component: Login, meta: { keepAlive: true } },
  { path: '/cd', component: Countdown }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
